package com.ruoyi.piaopiao.task;

import com.ruoyi.piaopiao.service.IBillService;
import com.ruoyi.piaopiao.service.impl.BillServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("PPTask")
public class PPTask {
    static IBillService billService;
    @Autowired
    private void setBillService(IBillService billService) {
        PPTask.billService =  billService;
    }
    public void run() {
        System.out.println("PPTask running...");
        System.out.println("生成本月还款计划...");
        billService.generateRecord();
    }
}
